<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>留言板 - 阿里芝麻网络相册</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/reply.js"></script>
<link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">#parse("navigation.html")
<div id="content2">
<h1 class="title">$!{user.nickName}的留言板</h1>
<a href="userHome.html?userId=$!{user.id}">$!{user.nickName}的个人主页</a>
<table width="800" align="center" border="0" cellpadding="5"
	cellspacing="0">
	#foreach($guestbook in $guestbookList)
	<tr>
		<td rowspan="3"><img
			src="readImage.html?id=$!{guestbook.headPic}"></td>
		<td><b><a href="userHome.html?userId=$!{guestbook.userId}">$!{guestbook.nickName}</a></b>
		&nbsp;&nbsp;&nbsp;&nbsp;$dateTool.format("SHORT",
		$!{guestbook.createTime})&nbsp;&nbsp;&nbsp;&nbsp;
		#if($!{userId}==$!{guestbook.hostUserId}||$!{userId}==$!{guestbook.userId})
		<a
			href="deleteGuestbook.html?guestbookId=$!{guestbook.id}&userId=$!{writerId}">删除</a>
		#end</td>
	</tr>
	<tr>
		<td>$!{guestbook.content}</td>
	</tr>
	<tr>
		<td class="bottomline">#if($!{guestbook.reply})主人回复：$!{guestbook.reply}#elseif($!{userId}==$!{guestbook.hostUserId})
		<input type="button" onClick="showsubmenu('$!{guestbook.id}')"
			value="回复" /> #end

		<div id="DivDisplay$!{guestbook.id}" style="display: none">
		<form method="post"
			action="showAllGuestbook.html?userId=$!{hostId}&guestbookId=$!{guestbook.id}">
		<textarea rows="4" cols="30" name="reply"></textarea> <br />
		<input type="submit" name="submit" value="提交" /></form>
		</div>
		</td>
	</tr>
	#end #if($!{guestbookList.size()}==0)
	<tr>
		<td class="bottomline" colspan="2">暂无留言</td>
	</tr>
	#end
	<tr>
		<td colspan="2">我要留言<br />
		<form method="post" action="showAllGuestbook.html?userId=$!{hostId}">
		<textarea rows="6" cols="40" name="content"></textarea><span
			class="error">$!{error_content}</span> <br />
		<input type="submit" name="submit" value="提交" /></form>
		</td>
	</tr>
</table>
</div>
#parse("footer.html")</div>
</body>
</html>
